import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'login',
      component: () => import('@/view/login.vue'),
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('@/view/main.vue'),
      children: [
        {
          //图表例子
          path: '/zhuzhuangtu',
          name: 'zhuzhuangtu',
          component: () => import('@/view/graph/zhuzhuangtu')
        },

        {
          //图表例子
          path: '/zhuzhuangtu2',
          name: 'zhuzhuangtu2',
          component: () => import('@/view/graph/zhuzhuangtu2')
        },
        {
          //图表例子
          path: '/new_file',
          name: 'new_file',
          component: () => import('@/view/graph/zhexiantu')
        },
        {
          //图表例子
          path: '/bingzhuangtu',
          name: 'bingzhuangtu',
          component: () => import('@/view/graph/bingzhuangtu')
        },
        {
          //销售部 客户关系录入窗口
          path: '/ClientRelations',
          name: 'ClientRelations',
          component: () => import('@/view/TGQ/ClientRelations')
        },
        {
          //销售部收入首页（图表）
          path: '/XiaoShouShouRu',
          name: 'XiaoShouShouRu',
          component: () => import('@/view/TGQ/interface/XiaoShouShouRu')
        },
        {
          //销售部成本首页（图表）
          path: '/XiaoShouChengBen',
          name: 'XiaoShouChengBen',
          component: () => import('@/view/TGQ/interface/XiaoShouChengBen')
        },
        {
          //销售部毛利首页（图表）
          path: '/XiaoShouMaoLi',
          name: 'XiaoShouMaoLi',
          component: () => import('@/view/TGQ/interface/XiaoShouMaoLi')
        },
        {
          //销售部毛利率首页（图表）
          path: '/XiaoShouMaoLiLv',
          name: 'XiaoShouMaoLiLv',
          component: () => import('@/view/TGQ/interface/XiaoShouMaoLiLv')
        },
        {
          //销售部目标（图表）
          path: '/XiaoShouMuBiao',
          name: 'XiaoShouMuBiao',
          component: () => import('@/view/TGQ/interface/XiaoShouMuBiao')
        },
        {
          //销售部线索（图表）
          path: '/XiaoShouXianSuo',
          name: 'XiaoShouXianSuo',
          component: () => import('@/view/TGQ/interface/XiaoShouXianSuo')
        },
        {
          //二手车部收入首页（图表）
          path: '/TwoCarShouRu',
          name: 'TwoCarShouRu',
          component: () => import('@/view/TGQ/TwoCar/TwoCarShouRu')
          },
        {
          //二手车部成本首页（图表）
          path: '/TwoCarChengBen',
          name: 'TwoCarChengBen',
          component: () => import('@/view/TGQ/TwoCar/TwoCarChengBen')
          },
        {
          //二手车部毛利首页（图表）
          path: '/TwoCarMaoLi',
          name: 'TwoCarMaoLi',
          component: () => import('@/view/TGQ/TwoCar/TwoCarMaoLi')
          },
        {
          //二手车部毛利率首页（图表）
          path: '/TwoCarMaoLiLv',
          name: 'TwoCarMaoLiLv',
          component: () => import('@/view/TGQ/TwoCar/TwoCarMaoLiLv')
          },
        {
          //二手车部目标首页（图表）
          path: '/TwoCarMuBiao',
          name: 'TwoCarMuBiao',
          component: () => import('@/view/TGQ/TwoCar/TwoCarMuBiao')
          },
        {
          //二手车部线索首页（图表）
          path: '/TwoCarXianSuo',
          name: 'TwoCarXianSuo',
          component: () => import('@/view/TGQ/TwoCar/TwoCarXianSuo')
          },
        {
          //线索录入
          path: '/threadInput',
          name: 'threadInput',
          component: () => import('@/view/ThreadInput/threadInput')
        },
        {
          path: '/adver',
          name: 'adver',
          component: () => import('@/view/advertising/adver')
        },
        {

          path: '/Usedcar',
          name: 'Usedcar',
          component: () => import('@/view/Usedcar/Usercar')
        },

        { //二网公司名称
          path: '/TwoNetwork',
          name: 'TwoNetwork',
          component: () => import('@/view/TwoNet/TwoNetwork')
        },
        {
          //洗美
          path: '/ximei',
          name: 'ximei',
          component: () => import('@/view/afterSale/XiMei')
        },
        {
          //延保
          path: '/yanbao',
          name: 'yanbao',
          component: () => import('@/view/afterSale/yanbao')
        },
        {
          //保养套餐
          path: '/carKeep',
          name: 'carKeep',
          component: () => import('@/view/CarKeep/carKeep')
        },
        {
          //车牌公司
          path: '/carNumberCompany',
          name: 'carNumberCompany',
          component: () => import('@/view/CarNumberCompany/carNumberCompany')
        },
        {
          //金融公司
          path: '/moneyCompany',
          name: 'moneyCompany',
          component: () => import('@/view/MoneyCompany/moneyCompany')
        },
        {
          //二手车公司
          path: '/twocompany',
          name: 'twocompany',
          component: () => import('@/view/Usedcar/Twocompany')
        },
        {
          //二手车车型名称
          path: '/Usercar',
          name: 'Usercar',
          component: () => import('@/view/Usedcar/Usercar')
        },
        {
          //保险公司
          path: '/insurance',
          name: 'insurance',
          component: () => import('@/view/Usedcar/Insurance')
        },

        {
          //角色管理
          path: '/role',
          name: 'role',
          component: () => import('@/view/role/role.vue')
        },
        //综合目标
        {
          path: '/TargetAndBackMonkey',
          name: 'TargetAndBackMonkey',
          component: () => import('@/view/GHQ/TargetAndBackMonkey/targetAndBackMonkey')
        },
        //综合返利
        {
          path: '/BackMonkey',
          name: 'BackMonkey',
          component: () => import('@/view/GHQ/TargetAndBackMonkey/backMonkey')
        },
        //售后目标
        {
          path: '/AfterSaleTarget',
          name: 'AfterSaleTarget',
          component: () => import('@/view/GHQ/AfterSaleTarget/afterSaleTarget')
        },
        //售后返利
        {
          path: '/AfterSaleBackMoney',
          name: 'AfterSaleBackMoney',
          component: () => import('@/view/GHQ/AfterSaleTarget/afterSaleBackMoney')
        },
        {
          //部门管理
          path: '/dept',
          name: 'dept',
          component: () => import('@/view/Dept/dept.vue'),
        }, {
          //菜单管理
          path: '/menu',
          name: 'menu',
          component: () => import('@/view/menu/manage')
        },
        {
          //权限管理
          path: '/permission',
          name: 'permission',
          component: () => import('@/view/Permission/permission')
        },
        {
          //用户管理
          path: '/user',
          name: 'user',
          component: () => import('@/view/User/user')
        },
        {
          //精品名称
          path: '/saleBoutique',
          name: 'saleBoutique',
          component: () => import('@/view/Sale/SaleBoutique')
        },
        {
          //新车车型录入
          path: '/newCar',
          name: 'newCar',
          component: () => import('@/view/Sale/newCar')
        },
        {
          //员工信息录入
          path: '/jopUser',
          name: 'jopUser',
          component: () => import('@/view/Sale/jopUser')
        },
        {
          //车辆订交
          path: '/carDingJiao',
          name: 'carDingJiao',
          component: () => import('@/view/Sale/carDingJiao')
        },
        {
          //售后前台录入
          path: '/afterSalefront',
          name: 'afterSalefront',
          component: () => import('@/view/afterSale/afterSalefront')
        },
        {
          //售后仓库录入
          path: '/AftersalesWareouse',
          name: 'AftersalesWarehouse',
          component: () => import('@/view/CarKeep/AftersalesWarehouse')
        },
        {
          //售后配件渠道
          path: '/AccessoriesChannels',
          name: 'AccessoriesChannels',
          component: () => import('@/view/Usedcar/Channel')
        },
        {
          //售后部 外协公司
          path: '/Outsource',
          name: 'Outsource',
          component: () => import('@/view/Usedcar/Outsource')
        },
      {
        //售后前台录入
        path: '/Afterinput',
        name: 'Afterinput',
        component: () => import('@/view/Usedcar/Afterinput')
      },
      {
        //车辆订交
        path: '/carOrder',
        name: 'carOrder',
        component: () => import('@/view/CarOrder/carOrder')
      },
      {
        //职位表
        path: '/position',
        name: 'position',
        component: () => import('@/view/position/position')
      },
      {

        //售后部前台维修信息
        path: '/AftermarketChart',
        name: 'AftermarketChart',
        component: () => import('@/view/chart/AftermarketChart')
      },
      {
        //售后部前台衍生信息
        path: '/deriveChart',
        name: 'deriveChart',
        component: () => import('@/view/chart/deriveChart')
      },
      {
        //销售部数据查询
        path: '/SearchXiaoShou',
        name: 'SearchXiaoShou',
        component: () => import('@/view/GHQ/search/xiaoShou')
      },
      {
        //售后部 客户关系（录入）
        path: '/SaleKeHuGuanXi',
        name: 'SaleKeHuGuanXi',
        component: () => import('@/view/GHQ/SaleKeHuGuanXi/saleKeHuGuanXi')
      },
      {
        //销售部数据查询
        path: '/shouHouQianTaiYanShen',
        name: 'shouHouQianTaiYanShen',
        component: () => import('@/view/GHQ/search/shouHouQianTaiYanShen')
      },
      {
        //销售部数据查询(图表)
        path: '/xiaoShouBuShouYe',
        name: 'xiaoShouBuShouYe',
        component: () => import('@/view/GHQ/picture/xiaoShouBuShouYe')
      },
      {
        //系统首页(图表)
        path: '/shouYe',
        name: 'shouYe',
        component: () => import('@/view/GHQ/picture/shouYe')
      },
      {
        //系统次首页(图表)
        path: '/ciShouYe',
        name: 'ciShouYe',
        component: () => import('@/view/GHQ/picture/ciShouYe')
      },
      {
        //系统次首页(图表)
        path: '/ciYeGHQ',
        name: 'ciYeGHQ',
        component: () => import('@/view/GHQ/picture/ciYeGHQ')
      },



    ]
  },
]
})
